package ch.unisi.inf.java.project.riskbami.model;


/**
 * Enumeration class CardType
 * 
 * @author minellir@lu.unisi.ch
 */

public enum CardType
{
    INFANTRY("infantry"), CAVALRY("cavalry"), ARTILLERY("artillery"), JOLLY("jolly");
    
    private String typeString;
    
    /**
     * Initialize with the corresponding type.
     * 
     * @param typeString The type string.
     */
    CardType(String typeString){
        this.typeString = typeString;
    }
    
    public String toString(){
        return typeString;
    }
}
